﻿using DocumentFormat.OpenXml.Packaging;

namespace OpenXml.Excel.Data
{
    /// <summary>
    /// 图片数据
    /// </summary>
    /// <remarks>高质量读取图片时，需要确保excel "选型=>高级=>图片大小和质量=>不压缩文件中的图片质量" 选中</remarks>
    public class ImageCellData
    {
        /// <summary>
        /// 图片的OpenXmlPart
        /// </summary>
        public OpenXmlPart OpenXmlPart { get; set; }

        /// <summary>
        /// 宽带
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        public int Height { get; set; } 

        /// <summary>
        /// 图片名称
        /// </summary>
        public string FileName { get; set; }
    }
}
